package com.jsu.springboot_crop.dao;

import com.jsu.springboot_crop.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Humura
 * @Date 2023/8/31 15:45
 * @Version 1.0
 */
@Mapper
public interface AddressDao {

    int insertSelective(Address address);

    List<Address> selectByExample(@Param("name")String name);

    Address selectOneByExample(String name, String isDef);

    int updateByPrimaryKey(Address address);

    Address selectByPrimaryKey(Integer id);

    int deleteByPrimaryKey(Integer id);
}
